package com.cms.recursoshumanos.popup;

import com.cms.recursoshumanos.engine.ScreenEngine;

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.Dialog;

public class ShowDialogAlert implements Runnable {
	String msg;
		
	public ShowDialogAlert(String msg) {
		this.msg = msg;
	}
	
	public void run() {

		ScreenEngine.getInstance().hideLoadingPopup_Error();
		UiApplication.getUiApplication().invokeLater(new Runnable() {
            public void run() {
				synchronized (UiApplication.getEventLock()) {
					//ScreenEngine.getInstance().hideLoadingPopup();
		        	Dialog.alert(msg);
				} 	
            }
        });
	}
}

